<?php 
if(!defined('ADMIN')){
	exit('Access Denied');
}

$act_arr=array('list','addedi','del','set');
?>
<script>
$(function(){
    $('#node_id').change(function(){
	    var node = $(this).val();
		$('#node').val(node);
	});
	$('#mod_id').change(function(){
	    var node = $(this).find("option:selected").text();
		$('#mod').val(node);
	});
	$('#act_id').change(function(){
	    var node = $(this).find("option:selected").text();
		$('#act').val(node);
	});
})
</script>
<div class="pageContent">
<form action="index.php?mod=<?=MOD?>&act=<?=ACT?>" method="post"  class="pageForm required-validate"  name="form1" onsubmit="return validateCallback(this, dialogAjaxDone);">
<input type="hidden" name="id" value="<?=$row['subjectid']?>" />
<input type="hidden" name="sub" value="save" />
<div class="pageFormContent" layoutH="60">



<p><label>直播类型：</label>
<?=html_radio($zhobotypelist,$row["zbtype"],'zbtype')?></p>

<p><label>法院名称：</label>
<input name="courtname" type="text" size="50"  id="courtname" value="<?=$row['courtname']?>" class="required" /></p>
<p><label>直播现场：</label>
<input name="subject" type="text" size="50"  id="subject" value="<?=$row['subject']?>" class="required" /></p>
<p><label>开始时间：</label>
<input name="fromdate" type="text" size="20"  id="fromdate" value="<?=$row['fromdate']?$row['fromdate']:date("Y-m-d H:i:s")?>" class="date" dateFmt="yyyy-MM-dd HH:mm:ss"   /><a class="inputDateButton" href="javascript:;">选择</a></p>
<p><label>结束时间：</label>
<input name="todate" type="text" size="20"  id="todate" value="<?=$row['todate']?$row['todate']:date("Y-m-d H:i:s",time())?>" class="date" dateFmt="yyyy-MM-dd HH:mm:ss"  /><a class="inputDateButton" href="javascript:;">选择</a></p>
<p><label>上传图片：</label>
<input name="attachment.id" value="" type="hidden" />
<input type="text" name="attachment.fileName" class="readonly" style="width: 250px;" readonly="readonly" value="<?=$row["thumb"]?>"  />
<a class="btnPic" href="<?=u("content","upload")?>" rel="dia<?=$contentid?>" lookupGroup="attachment" width="460" height="200" title="上传现场直播图">附件</a>
<span class="info">&nbsp;选择本地图片文件</span>
</p>
<p><label>主持人：</label>
<input name="operate_user" type="text" size="20"  id="operate_user" value="<?=$row["operate_user"]?>" class="required"  />
<span class="info">&nbsp;请填写本站用户名</span>
</p>

<p><label>联系人：</label>
<input name="contect" type="text" size="20"  id="contect" value="<?=$row["contect"]?>"  />
<span class="info">&nbsp;</span>
</p>
<p><label>联系电话：</label>
<input name="tel" type="text" size="20"  id="tel" value="<?=$row["tel"]?>"  />
<span class="info">&nbsp;</span>
</p>
<!--
<p><label>参与角色：</label>
<input type="hidden" name="opval[]" value="<?=$votedata[0]['optionid']?>" />
<input name="oplist[]" type="text" size="20"  value="<?=$votedata[0]['option']?>" class="required" />
<input type="hidden" name="opval[]" value="<?=$votedata[1]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[1]['option']?>"  class="required" /><span>请填写直播中的角色</span>
</p>

<p><label>&nbsp;</label>
<span>
<input type="hidden" name="opval[]" value="<?=$votedata[2]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[2]['option']?>"  />
<input type="hidden" name="opval[]" value="<?=$votedata[3]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[3]['option']?>" /></span></p>
<p><label>&nbsp;</label><span>
<input type="hidden" name="opval[]" value="<?=$votedata[4]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[4]['option']?>" />
<input type="hidden" name="opval[]" value="<?=$votedata[5]['optionid']?>" />
<input name="oplist[]" type="text" size="20"  value="<?=$votedata[5]['option']?>" /></span></p>
<p><label>&nbsp;</label><span>
<input type="hidden" name="opval[]" value="<?=$votedata[6]['optionid']?>" />
<input name="oplist[]" type="text" size="20"  value="<?=$votedata[6]['option']?>" />
<input type="hidden" name="opval[]" value="<?=$votedata[7]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[7]['option']?>" /></span></p>
<p><label>&nbsp;</label><span>
<input type="hidden" name="opval[]" value="<?=$votedata[8]['optionid']?>" />
<input name="oplist[]" type="text" size="20"  value="<?=$votedata[8]['option']?>" />
<input type="hidden" name="opval[]" value="<?=$votedata[9]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[9]['option']?>" /></span></p>
-->
<p><label>是否启用：</label>
<?=html_radio($yesno_arr,$row["enabled"],'enabled')?></p>
<p><label>直播描述：</label>
<textarea  name="description" rows="6" cols="40"><?=$row["description"]?></textarea>
</p>
</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
</form>
</div>
